/*
 * @Author: LGX
 * @Date: 2022-04-07 13:44:50
 * @LastEditors: LGX
 * @LastEditTime: 2022-04-08 11:38:42
 * @FilePath: \erp-management-system\src\components\customerseas\DescriptionsInfo.jsx
 * @Description: 
 * 
 */
import React from 'react';
import { Descriptions, Badge } from 'antd'
const Descriptionsinfo = (props) => {
    const { userInfo } = props
    const arr = [
        { label: '客户名称', name: userInfo.customerUsername },
        { label: '联系人', name: userInfo.customerName },
        { label: '手机号码', name: userInfo.phoneNumber },
        // { label: '生日', name: userInfo. },
        { label: 'QQ', name: userInfo.qqNumber },
        { label: '电子邮箱', name: userInfo.email },
        { label: '所在地区', name: userInfo.province + userInfo.city + userInfo.area },
        { label: '详细地址', name: userInfo.address },
        { label: '客户类型', name: userInfo.customerTypeTitle },
        { label: '客户级别', name: userInfo.customerLevelTitle },
        { label: '客户来源', name: userInfo.customerSourceTitle },
        { label: '所属行业', name: userInfo.industryTitle },
        { label: '商品类别', name: userInfo.comSortName1 + userInfo.comSortName2 },
        // { label: '附件', name: userInfo. },
        { label: '备注', name: userInfo.remarks },
        { label: '录入者', name: userInfo.employeeInputName },
        { label: '录入时间', name: userInfo.entryTime },
        { label: '业务员', name: userInfo.employeeName },
        { label: '最后更新', name: userInfo.updateTime },
    ]
    return (
        <Descriptions layout="horizontal" bordered column={2} >
            {arr.map((item, index) => {
                return <Descriptions.Item key={index} span={1} label={item.label}>{item.name}</Descriptions.Item>
            })}
        </Descriptions>
    )
}
export default Descriptionsinfo;
